# -*- coding: utf-8 -*-
#其他信息页面
class otherinfoPage():
    def __init__(self, driver):
        self.driver = driver
    #投保人其他信息
    #身高
    def policyHeight(self):
        return self.driver.find_element_by_xpath("//*[@id='pane-1']/div/div[2]/div/div/div/input")
    #体重
    def policyWeight(self):
        return self.driver.find_element_by_xpath("//*[@id='pane-1']/div/div[3]/div/div/div/input")
    #本人申明
    def declare(self):
        return self.driver.find_element_by_xpath("//*[@id='pane-1']/div/div[7]/div/div/div/div/input")
    #本人申明选择确认
    def declarecon(self,listdata):
        return self.driver.find_elements_by_xpath("//*[text()='%s']" % listdata)[-1]
    #出生国家
    def birthContry(self):
        return self.driver.find_element_by_xpath("//*[@id='pane-1']/div/div[8]/div/div/div/div/input")
    def birthContryCon(self,listdata):
        return self.driver.find_elements_by_xpath("//*[text()='%s']" % listdata)[-1]
    #税收居民国
    def revenue(self):
        return self.driver.find_element_by_xpath("//*[@id='pane-1']/div/div[9]/div/span/i")
    def revenueDis(self):
        return self.driver.find_element_by_xpath("//*[@id='pane-1']/div/div[10]/div/table/tr[2]/td[3]/div/div/label[1]/span[2]")

    # 被保人信息
    #被保人
    def insurename(self,listdata):
        return self.driver.find_elements_by_xpath("//*[text()='%s']" % listdata)[0]
    #被保人身高
    def insureHeight(self):
        return self.driver.find_element_by_xpath("//*[@id='pane-2']/div/div[2]/div/div/div/input")
    #被保人体重
    def insureWeight(self):
        return self.driver.find_element_by_xpath("//*[@id='pane-2']/div/div[3]/div/div/div/input")
    ###############已提供材料清单信息###################
    #归属人
    def Belonger(self):
        return self.driver.find_element_by_xpath("//*[@id='app']/div/div[3]/div[2]/div[2]/div/div[3]/table/tbody/tr/td[3]/div/div/div[1]/input")
    def BelongerCon(self,listdata):
        return self.driver.find_elements_by_xpath("//*[text()='%s']" % listdata)[-1]
    #有效期间
    def endDate(self):
        return self.driver.find_element_by_xpath("//*[@id='app']/div/div[3]/div[2]/div[2]/div/div[3]/table/tbody/tr/td[5]/div/div/input")
    #提交
    def submit(self):
        return self.driver.find_element_by_xpath("//*[@id='app']/div/div[3]/div[3]/button[2]/span")
    #确定
    def confirm(self):
        return self.driver.find_element_by_xpath("/html/body/div[5]/div/div[3]/button/span")